package com.woniu.car.parameter;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * Description:
 * date: 2021/6/23 9:28
 *
 * @author zhoubinbin
 * @since
 */
@Data
@ApiModel("实名认证参数对象")
public class RegistrationParam {
    /**
     * 身份证号码
     */
    @ApiModelProperty(value = "身份证号码",example = "十八位或者16位",required = true)
    @NotBlank
    @Length(min = 16,max = 18,message = "身份证长度必须为16位或者18位")
    private String identityNumber;

    /**
     * 身份证地址
     */
    @ApiModelProperty(value = "真实姓名",required = true)
    @NotBlank
    private String realName;

}
